﻿namespace ClassLibrary
{
    /* class intented to save data about one real locus */
    public class Locus
    {
        public int id { set; get; }
        public Chromosome chromosome;
        public Gene gene;

        public Locus(Chromosome chrom, int locus_id, int allele_type_id, int allele)
        {
            id = locus_id;
            chromosome = chrom;
            gene = new Gene(this, allele_type_id, allele);
        }

        public int getAllele()
        {
            return gene.allele;
        }
    }
}